
def test2():
  idPairs = FindStatRequests("c:\\temp\\ss_p.txt", client = "Data Sourcer", message = "NewAPIOpenStat", object_id = "1000", stat_type = "MaxConsultCallTime")
  print "OpenedStats: ", len(idPairs)
  responses = FindStatResponses("c:\\temp\\ss_p.txt", client = "Data Sourcer", idPairs = idPairs)

  closedStats = FindAssocStatRequests("c:\\temp\\ss_p.txt", client = "Data Sourcer", message = "CloseStat", idPairs = idPairs)

  cnt = 0
  for key in closedStats.keys():
    if closedStats[key] == 1:
      cnt = cnt + 1
    
  print "ClosedStats: ", cnt

  